package com.qianfeng.openapi.web.master.service;

import com.github.pagehelper.PageInfo;
import com.qianfeng.openapi.web.master.pojo.Customer;

import java.util.List;

public interface CustomerService {
    int insertCustomer(Customer customer);
    int updateCustomer(Customer customer);
    int deleteCustomer(Long id);
    Customer getCustomerById(Long id);
    List<Customer> getAllCustomers();

    public PageInfo<Customer> getCustomerByPage(Integer page, Integer size);

    void deleteCustomers(Long[] ids);

    PageInfo<Customer> selectCustomerByCondition(Integer page, Integer limit, String username, Integer state);
}
